package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author 2023
 */

@AllArgsConstructor
public enum OrderSourceTypeEnum implements IEnum<Integer>
{
    /**
     * 收银台
     */
    CHECKSTAND(0,"收银台"),
    /**
     * 微信小程序
     */
    WECHAT(1,"微信小程序"),
    /**
     * 商店内部程序
     */
    MERCHANT(2,"商店内部程序"),
    /**
     * APP
     */
    APP(3,"APP"),
    /**
     * 自助收银机
     */
    SELF_SERVICE_CASH_REGISTER(4,"自助收银机");

    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    @Override
    public Integer getValue()
    {
        return code;
    }
    public String getStatus(){return status;}
}
